import request from '@/utils/request'

// 查询采购采退详情表列表
export function listXqpurchase(query) {
  return request({
    url: '/supermarket/xqpurchase/list',
    method: 'get',
    params: query
  })
}

// 查询采购采退详情表详细
export function getXqpurchase(pId) {
  return request({
    url: '/supermarket/xqpurchase/' + pId,
    method: 'get'
  })
}

// 新增采购采退详情表
export function addXqpurchase(data) {
  return request({
    url: '/supermarket/xqpurchase',
    method: 'post',
    data: data
  })
}

// 修改采购采退详情表
export function updateXqpurchase(data) {
  return request({
    url: '/supermarket/xqpurchase',
    method: 'put',
    data: data
  })
}

// 删除采购采退详情表
export function delXqpurchase(pId) {
  return request({
    url: '/supermarket/xqpurchase/' + pId,
    method: 'delete'
  })
}
